<script>
function checkform(){
	var subject=$('input[name="subject"]').val();
	if(trim(subject)==''){
		alert('请填写博客主题!');
		return false;		
	}
	
	var content = FCKeditorAPI.GetInstance('FCKeditor1').GetXHTML( true );
	if(trim(content)==''){
		alert('请填写好博客内容!');
		return false;
	}
	commonEffection.setLoading();
	$('#addBlogForm').submit();
}
</script>
<div class="frame_addfactoryDiv">
  <form name="addBlogForm" id="addBlogForm" enctype="multipart/form-data"  action="administrator<?=CHOSING_DE?>blog<?=CHOSING_DE?>add" method="post">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
    <tr>
      <td width="15%" class="ri-bbgg"><span class="red">*</span> 博客主题：</td>
      <td width="85%" class="le">
	  	<input type="text" name="subject" value="" id="subject">
	  </td>
    </tr>
    <tr>
      <td class="ri-bbgg">博客内容：</td>
      <td class="le">
        <div><?=$this->oFCKeditor->Create();?></div>
	  </td>
    </tr>
    <tr>
      <td colspan="2" class="se" align="center">
        <input name="button2" type="button" class="iput" value="保 存"   onclick="checkform();" />　　
        <input name="button" type="button" class="iput" value="返 回" onclick="commonEffection.confirmBack();" />
      </td>
    </tr>
  </table>
</div>
